#ifndef UIELEMENT_H
#define UIELEMENT_H

#include <QString>
#include <QMap>
#include <QVariant>
#include <QList>

namespace dynamic_json_ui {

struct JsonUiElement
{
    QString type;
    QString id;
    QMap<QString, QVariant> properties;
    QList<JsonUiElement> children;
    QString style;
    QMap<QString, QString> _signals; // 例如: {"onClicked": "submitForm"}
};

} // namespace dynamic_json_ui

#endif // UIELEMENT_H
